<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateWallChatsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wall_chats', function (Blueprint $table) {
            $table->increments('id');
			$table->integer('wallid')->default(0)->comment('微信墙id');
			$table->string('openid')->default('')->comment('用户openid');
			$table->string('value')->default('')->comment('值');
			$table->datetime('send_time')->comment('发送时间');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::dropIfExists('wall_chats');
    }
}
